package com.hello.tab;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class HellotapActivity extends Activity implements OnClickListener{
    /** Called when the activity is first created. */
	
	
	private Button btn;
	private Context context = this;
	
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main); // you can change the layout with this line for example : R.layout.hello //
        
        
        
        Button btn = (Button) findViewById(R.id.btn);
        TextView textView1 = (TextView)findViewById(R.id.textView1);
        btn.setOnClickListener(this);
        
       
    }
	public void onClick(View v) {
		Intent intent = new Intent(context,helloActivity.class);
		intent.putExtra("hello","1");
		context.startActivity(intent);
		
	}
		
	}
